﻿// Apache-2.0 License
// Copyright (c) 2021-2022 zuohuaijun


using Org.BouncyCastle.Utilities.Encoders;

namespace Corpus.Core;
/// <summary>
/// SM工具类
/// </summary>
public class SMUtil
{
    public static string StrToHex(string str)
    {
        return Encoding.ASCII.GetString(Hex.Encode(Encoding.UTF8.GetBytes(str))).ToUpper();
    }
}